<?php 
include 'functions.php';
$info = array();
if(IS_POST){
	include './6index.php';
	$upload =new Upload();
	$info = $upload->up();
	if(!$info){
		echo "<span style = 'color:red'>". $upload->error ."</span>";
	}
}
 ?>
 <html>
 	<head>
 		<title></title>
 	</head>
 	<body>
 		<ul>
 			<?php foreach ($info as $v): ?>
 			<li><img src="<?php echo $v ?>"style="width: 200px;"/></li>
 			<?php endforeach ?>
 		</ul>
 		<hr />
 		<form action="" method="post" enctype="multipart/form-data">
 			<input type="file" name="up[]" />
 			<input type="file" name="up[]" />
 			<input type="file" name="xip" />
 			<input type="submit" name="" id="" value="上传" />
 		</form>
 	</body>
 </html>